@import 'open-props/postcss/style';
@import 'open-props/postcss/normalize';

:root {
  font-family: var(--font-mono);
  body {
    background-color: var(--gray-9);
    display: grid;
    place-content: center;
    min-height: 100vh;
    min-width: 100vw;
  }
}

main {
  width: 300px;
  height: 600px;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: 3s;
  &:hover {
    transform: perspective(500px) rotateY(180deg);
  }
  section {
    position: absolute;
    inset: 0;
    width: 300px;
    height: 600px;
    border-radius: 5em;
    overflow: hidden;
    backface-visibility: hidden;
    box-shadow: 0 0 10px 0
        rgba($color: #000000, $alpha: 0.3),
      inset 0 0 35px 0 rgba($color: #000000, $alpha: 0.8),
      0 0 0 10px var(--gray-8), 0 0 0 15px var(--gray-7),
      0 0 0 10px var(--gray-8), 0 0 15px 30px var(--gray-8);
    background: linear-gradient(
      to top,
      rgb(100, 116, 139),
      rgb(254, 249, 195)
    );
    h4 {
      padding: 0 10px;
      margin: 1em 0;
      text-align: center;
    }
    p {
      font-size: 0.8em;
      padding: 0 10px;
    }
    .footer {
      display: flex;
      margin-top: 2em;
      justify-content: center;
      button {
        width: max-content;
        background: var(--orange-8);
        color: white;
        font-size: 1em;
        border-radius: 0.3em;
        padding: 0.3em 1em;
        margin-top: -10px;
        box-shadow: inset 0 0 1em 0
          rgba($color: #000000, $alpha: 0.3);
      }
    }
    &:nth-child(2) {
      transform: rotateY(180deg);
      background: linear-gradient(
        to top,
        rgb(236, 72, 153),
        rgb(239, 68, 68),
        rgb(234, 179, 8)
      );
      display: grid;
      place-content: center;
      place-items: center;
      img {
        border-radius: 50%;
        width: 120px;
        height: 120px;
        object-fit: cover;
      }
      h5 {
        font-size: 3em;
        color: white;
        text-shadow: 0 0 5px
          rgba($color: #000000, $alpha: 0.6);
      }
    }
  }
}
